<div class="row row_01 login_siderbar">
  <?php
	$sesAccount = new Zend_Session_Namespace('Account');
	if(isset($sesAccount->id)){?>
		<div class="head">
			<p>Thông tin tài khoản</p>
		</div>
		<div class="content">
			<p><?=$sesAccount->fullName ?> (
			<a href="<?=$this->baseUrl();?>/web/user/logout">Thoát</a>
			)</p>
			<p><a href="<?=$this->baseUrl();?>/web/user/changepass">Đổi mật khẩu</a></p>
		</div>
	<?php
		
	}else{?>
		<div class="head">
			<p>Đăng nhập</p>
		</div>
		<div class="content">
			<form id="_loginform" action="<?=$this->baseUrl();?>/web/user/login" method="post">
				<div class="input_tk">
					<input class="login" type="text" value="Tài khoản" name="username" id="username" maxlength="24" tabindex="1">
					<input class="login" type="password" value="Mật khẩu" name="password" id="password" maxlength="32" tabindex="2">
				</div>
				<div class="check_remember_tk">
					<input type="checkbox" checked="checked" value="1" class="checkMem2" id="remember" name="remember">
					Ghi nhớ đăng nhập
				</div>
				<div class="button_area">
					<a href="#" onclick="document.getElementById('_loginform').submit(); return false;" class="button">Đăng nhập</a>
					<a href="<?=$this->baseUrl();?>/web/user/register" class="button">Đăng ký</a>
				</div>
				<a href="<?=$this->baseUrl();?>/web/user/lostpass" class="forgetpass">Quên mật khẩu?</a>
			</form>
		</div>
	<?php } ?>
</div>
<div class="row row_02 cdkh">
	<div class="head">
		<p>Chuyên đề khoa học</p>
	</div>
	<div class="content">
		<ul>
	<?php
		$arrMenu = $this->arrRightMenu;
		$html = '';
		for($i=0; $i < sizeof($arrMenu); $i++){
			$MenuName = $arrMenu[$i]['C_NAME'];
			$urlRe = "javaScript:viewbycode('".$arrMenu[$i]['C_CODE']."')";	
			$html = $html.'<li id ="'.$srightmenu.'">';
			$html = $html.'<a href="'.$urlRe.'">'.$MenuName.'</a>';	
			$html = $html.'</li>';
		}
		//echo htmlspecialchars($html);//exit;
		echo $html;
   ?>
   		</ul>
	</div>
</div>

<div class="row row_03 tacgia">
	<div class="head">
		<p>Tác giả</p>
	</div>
	<div class="content c-block">
		<ul class="c-b-content">
		<?php
			$arrMenu = $this->arrAuthors;
			$html = '';
			for($i=0;$i<sizeof($arrMenu);$i++){
				$iDown = 0;
				$divID = '';
				$MenuName = $arrMenu[$i]['C_NAME'];
				$urlRe = "javaScript:viewbyauthor('".$arrMenu[$i]['C_CODE']."')";	
				$html = $html.'<li id ="'.$srightmenu.'">';
				$html = $html.'<a href="'.$urlRe.'">'.$MenuName.'</a>';
				$html = $html.'</li>';
			}
			echo $html;
		?>
		</ul>
		<a class="c-b-more">Mở rộng</a>
	</div>
</div>
<script>
	jQuery(document).ready(function() {
      jQuery(".c-b-more").click(function()
      {
        jQuery(this).prev(".c-b-content").toggleClass('expand');
      });
    });
</script>
<style>
.c-block .expand {
    height: auto !important;
}
.c-block {height: 200px;}
</style>